<template>
  <div>
    <div style="width: 1200px; margin: 100px auto">
      <h1 class=" cinemas-list-header"><span>影院列表</span>
        <div class="cinemas-list-filter">
        <span class="cinemas-list-filter-title ">
          <img src="http://p1.meituan.net/scarlett/af58aa7b387e1c4d26797f027733ace2309.png">
          筛选
        </span>
        </div>
      </h1>
<br>
      <div>
          <div class="item border-bottom" v-for="item in backcinemaList" :key="item.cinemaId">


            <div class="item-img-wrapper">
              <img class="item-img" :src="item.pic" :alt="item.name" style="border: gold solid 1px ">
            </div>
            <router-link to="/cinemadetail">
            <div class="item-info" style="">
              <p class="item-title">{{item.name}}</p>
              <p class="item-desc">{{item.address}}</p>
              <p class="item-price">
                ￥{{item.cinemaId+15}}<span class="qi"> 起</span>
              </p>
              <p style="color: #222222">影院服务：</p>
              <p>可改签</p>
              <p>有停车场</p>
              <p>播出前30分钟可退票</p>
              <p></p>
              <p>
                <span class="item-location">电话：{{item.tel}}</span>
              </p>
            </div>
            </router-link>
          </div>
        </div>

    </div>

  </div>
</template>

<script>

  import {mapActions,mapGetters}  from 'vuex'
  export default {

    methods:{
      ...mapActions(['getcinameList'])
    },
    mounted(){
      this.getcinameList();
    },
    computed:{
      ...mapGetters(['backcinemaList'])
    }
  }
</script>



<style scoped>
  .cinemas-list-header {
    font-size: 18px;
    color: #333;
    border-left: 4px solid #f03d37;
    padding-left: 6px;
    line-height: 18px;
    margin: 0;
    position: relative;
    font-weight: bolder;
  }
  .cinemas-list-filter {
    font-family: PingFangSC-Regular;
    font-size: 13px;
    color: #666;
    letter-spacing: 0;
    font-weight: 400;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    background: #fff;
  }
  .cinemas-list-filter-title {
    display: block;
    width: 70px;
    margin-bottom: 8px;
    padding-left: 10px;
  }


  .filter-item a {
    color: #666;
  }
  a {
    text-decoration: none;
  }

  .item{
    overflow: hidden;
    /*overflow 属性规定当内容溢出元素框时发生的事情。,内容会被修剪，并且其余内容是不可见的。*/
    display: flex;/*弹性布局*/
    height: 250px;
  }
  .item-img-wrapper{
    overflow: hidden;
    height: 0;
    padding-bottom:33.9%;
  }

  .item-img{
    width: 200px;
    height:200px;
    padding: 5px;
  }
  .item-info{
    width: 1000px;
    line-height: 27px;
    padding: 5px;
    font-size: 15px;
    min-width: 0;/*设置段落的最小宽度*/

  }
  .item-price{
    line-height: 22px;
    margin-top: 10px;
    color: #ff8c12;
    font-size: 20px;

  }
  .item-title{
    line-height: 27px;
    font-size: 24px;
    overflow: hidden;
    white-space: nowrap;
    color: #222222;
    text-overflow: ellipsis
  }
  .item-desc{
    line-height: 20px;
    color: #bbb;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis
  }
  .qi{
    color: #616161;
    font-size: 12px
  }
  .item-location{
    display: inline-block;
    float: right;
    right: 20px;
    bottom: 5px;
    color: #222222;
    font-size: 18px;
  }
  p{
    color: #222222;
  }
</style>
